#pragma once

#include <opencv2/opencv.hpp>

using namespace cv;


/// <summary>
/// //开始启用cv函数从路径打开图片
/// </summary>
/// <param name="imgPath"></param>
void ReadAndShow_Demo(std::string imgPath)//开始启用cv函数打开图片
{
	Mat src = imread(imgPath);  //imagePath图片的路径 
	//namedWindow("input",WINDOW_FREERATIO);
	imshow("input", src);
	waitKey(000);
	destroyAllWindows();	//关闭窗口 
}

/// <summary>
/// //开始启用cv函数打开图片举证
/// </summary>
/// <param name="src"></param>
void ReadAndShow_Demo(Mat src)
{ 
	//namedWindow("input",WINDOW_FREERATIO);
	imshow("input", src);
	waitKey(000);
	destroyAllWindows();	//关闭窗口 
}